<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    

<link rel="stylesheet" type="text/css" href="css/maintable.css" ></link>

<script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
<script>
	$(function(){
		 $("tr").mouseover(function(){
	  	  		$(this).css("background","#d3eaef").siblings().css("background","white");
	  	 })
	});
</script>

</head>

<body>
	<div class ="div_title">
		<div class="div_titlename"> <img src="images/san_jiao.gif" ><span>角色列表</span></div>
    </div>
			 
	<table class="main_table">
		<tr>
				<th>角色名称</th>
				<th>角色描述</th>
				<th>操作</th>
	    </tr>
			
		<c:forEach var="r" items="${roleList}">
			<tr>
					<td>${r.roleName}</td>
					<td><a title="${r.desshow}">${r.des}</a></td>
					<td><a href="RoleServlet.do?flag=delete&roleId=${r.id}">删除</a>  <a  href="RoleServlet.do?flag=gotoupdate&roleId=${r.id}">修改</a>  <a href="RoleServlet.do?flag=distribution_role&roleId=${r.id}">权限分配</a></td>
		    </tr>
		</c:forEach>
	</table>
	${msg}
</body>
</html>